<!doctype html>
<html lang='en'>
	<head>
		<meta charset='UTF-8'>
		<title>正则</title>
		<script>
			var str = 'fdfdfdfshellofwqrbgfb';
			var re = /hello/;
			window.onload = function () {
				if(re.test(str)){
					alert('包含');
				}else {
					alert('没有');
				}
			}
		</script>
	</head>
	<body>
	</body>
</html>